//auto gen by paipai.java.augogen ver 143
//author floatman
#ifndef _HELLOWORLDDAO_HELLOWORLD_H_
#define _HELLOWORLDDAO_HELLOWORLD_H_

#include <stdint.h>
#include <string>
#include <iostream>
#include "app_platform/help_macros.h"
#include "app_platform/intf_service.h"
#include "intf_helloworlddao.h"

#include "library/basic/singleton_t.h"
#include "library/basic/sync_lock.h"
#include "c2cent/library/log/CWTimeElf3.h"

#include <map>
#include "erp/helloworld/ddo/helloworldddo_helloworld.h"
#include "erp/helloworld/ddo/helloworldfilterddo_helloworld.h"

HEADER_SELF_DEFINE_START
/**
*  请在这里增加自定义包含的头文件，否则无法合并代码
**/
HEADER_SELF_DEFINE_END

namespace erp
{
namespace helloworld
{
namespace dao
{

#define HELLOWORLDDAO_SERVICE_VERSION "ERP_HELLOWORLD_DAO___HELLOWORLDDAO__SERVICE_VERSION__1.0 2013-10-11 13:58:07"
const std::string HELLOWORLDDAO_SERVICE_NOUSE = HELLOWORLDDAO_SERVICE_VERSION;

SERVICE class CHelloWorldDao : public IHelloWorldDao{
public:
		CHelloWorldDao(enum DeployMethod method = DEPLOY_STANDALONE);
		~CHelloWorldDao();
		 void Reset();
		static int Initialize(IUserDefineCntl* pCntl = NULL);

public:
	 /**
	 *
	 *    根据ID获取 HelloWorld 信息
	 *
	 */
	EXPORT(0xc0380001) uint32_t GetHelloWorldById(
		 const CCntlInfo& rCntlInfo,
		 const std::string& strMachineKey,
		 const std::string& strSource,
		 uint32_t dwSceneId,
		 const erp::helloworld::ddo::CHelloWorldFilterDdo& oHelloWorldFilter,
		 const std::string& strInReserve,
		 std::string& strErrmsg,
		 std::map<uint32_t,erp::helloworld::ddo::CHelloWorldDdo> & mapHelloWorlds,
		 std::string& strOutReserve
		);

	 /**
	 *
	 *    写入HelloWorld信息
	 *
	 */
	EXPORT(0xc0380002) uint32_t AddHelloWorld(
		 const CCntlInfo& rCntlInfo,
		 const std::string& strMachineKey,
		 const std::string& strSource,
		 uint32_t dwSceneId,
		 const erp::helloworld::ddo::CHelloWorldDdo& oHelloWorld,
		 const std::string& strInReserve,
		 std::string& strErrmsg,
		 erp::helloworld::ddo::CHelloWorldDdo& oHelloWorldBack,
		 std::string& strOutReserve
		);

SECTION_SELF_DEFINE_START
/**
* 请在这里增加自定义的成员变量和函数，否则无法合并代码
**/
private:
		std::string m_strMachineKey;
        std::string m_strSource;
        std::string m_strClientIP;
        uint32_t m_dwSceneId;
        uint32_t m_dwOperatorUin;
SECTION_SELF_DEFINE_END

private:
	enum DeployMethod m_method;
};

}
}
}

#endif /* _HELLOWORLDDAO_HELLOWORLD_H_ */
